package com.jicheng.mapper;

import com.jicheng.dto.integrity.ParttimeSituationDto;
import com.jicheng.entity.ParttimeSituation;
import com.jicheng.framework.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ParttimeSituationMapper extends BaseMapper<ParttimeSituation> {
    List<ParttimeSituationDto> getParttimeSituation(@Param("reportId") String reportId, @Param("cadreId") String cadreId, @Param("appId") String appId);
    @Select("select count(1) from part_time_situation where id = #{cadreId}")
    int isExist(String cadreId);
    @Delete("delete from part_time_situation where id = #{id}")
    void del(@Param("id") String id);
}
